package com.wsx.ones.monitor.core.util;

import com.wsx.ones.monitor.core.log.DefaultLogServiceImpl;
import com.wsx.ones.monitor.core.log.LogService;

/**
 * Created by wangshuaixin on 17/2/10.
 */
public class LogUtil {

    private static LogService logService = new DefaultLogServiceImpl();

    public static LogService getLogService() {
        return logService;
    }

    public static void setLogService(LogService logService) {
        LogUtil.logService = logService;
    }


    public static void trace(String msg) {
        logService.trace(msg);
    }
    public static void trace(String format, Object... array) {
        logService.trace(format, array);
    }

    public static void info(String msg) {
        logService.info(msg);
    }
    public static void info(String format, Object... array) {
        logService.info(format, array);
    }
    public static void info(String msg, Throwable throwable) {
        logService.info(msg, throwable);
    }
}
